﻿<Window x:Class="DynaCAD.PartCreator"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Parça Yönetimi" Height="1080" Width="1240" Closing="Window_Closing" WindowState="Maximized" KeyDown="Window_KeyDown" xmlns:my="clr-namespace:Seams;assembly=Seam" Icon="dc.ico">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="385*" />
            <ColumnDefinition Width="833*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition Height="25" />
            <RowDefinition Height="25" />
            <RowDefinition Height="30" />
            <RowDefinition Height="913*" />
        </Grid.RowDefinitions>
        <TabControl Name="TABS" Grid.Row="3" Grid.RowSpan="2"  Grid.Column="1" SelectionChanged="TabControlSelectionChanged" >
            <TabItem Name="FrontLeftTab" Header="Ön-Sol" >
                <Grid Name="FrontLeftGrid" ClipToBounds="True" Background="White" MouseMove="FrontLeftStackPanelMouseMove" MouseLeave="FrontLeftStackPanelMouseLeave" MouseWheel="FrontLeftStackPanelMouseWheel" MouseLeftButtonDown="FrontLeftStackPanelMouseLeftButtonDown" MouseLeftButtonUp="FrontLeftStackPanelMouseLeftButtonUp" >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="879*" />
                    </Grid.RowDefinitions>
                    <StackPanel Name="FrontLeftStackPanel" Background="White" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left"  >
                        <Canvas Name="FrontLeftCanvas" Background="White" VerticalAlignment="Top" HorizontalAlignment="Left" ></Canvas>
                        <Canvas Name="FrontLeftPoints" Background="White" VerticalAlignment="Top" HorizontalAlignment="Left" ></Canvas>
                        <Canvas Name="FrontLeftRectangleCanvas">
                            <Rectangle Name="FrontLeftRectangle" Canvas.Left="50" Canvas.Top="50" Width="50" Height="50" Stroke="Green" Fill="LightBlue" Opacity="0.5" Visibility="Hidden" />
                        </Canvas>
                    </StackPanel>
                    <ToolBar Background="#FFCAE5D7" Grid.Row="0" >
                        <Button Click="FrontLeftOpenClick">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Open.png"/>
                        </Button>
                        <Button ToolTip="Kes" Click="CutClick" >
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Cut.png"/>
                        </Button>
                        <Button Click="CopyClick"  ToolTip="Kopyala">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Copy.png"/>
                        </Button>
                        <Button Click="PasteClick"  ToolTip="Yapıştır">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Paste.png"/>
                        </Button>
                        <Button ToolTip="Sil" Click="DeleteClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Delete.png"/>
                        </Button>
                        <Button ToolTip="Seçileni Al" Click="TakeClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Accept.png"/>
                        </Button>
                    </ToolBar>
                </Grid>
            </TabItem>
            <TabItem Name="FrontRightTab" Header="Ön-Sağ">
                <Grid Name="FrontRightGrid" Background="White" ClipToBounds="True" MouseMove="FrontRightStackPanelMouseMove" MouseWheel="FrontRightStackPanelMouseWheel" MouseLeave="FrontLeftStackPanelMouseLeave" MouseLeftButtonDown="FrontRightStackPanelMouseLeftButtonDown" MouseLeftButtonUp="FrontRightGridMouseLeftButtonUp" >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="879*" />
                    </Grid.RowDefinitions>
                    <StackPanel Name="FrontRightStackPanel" Background="White" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left"  >
                        <Canvas Name="FrontRightCanvas" VerticalAlignment="Top" HorizontalAlignment="Left" ></Canvas>
                        <Canvas Name="FrontRightPoints" VerticalAlignment="Top" HorizontalAlignment="Left" ></Canvas>
                        <Canvas Name="FrontRightRectangleCanvas">
                            <Rectangle Name="FrontRightRectangle" Canvas.Left="50" Canvas.Top="50" Width="50" Height="50" Stroke="Green" Fill="LightBlue" Opacity="0.5" Visibility="Hidden" />
                        </Canvas>
                    </StackPanel>
                    <ToolBar Background="#FFCAE5D7" Grid.Row="0" >
                        <Button Click="FrontRightOpenClick">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Open.png"/>
                        </Button>
                        <Button ToolTip="Kes" Click="CutClick" >
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Cut.png"/>
                        </Button>
                        <Button Click="CopyClick"  ToolTip="Kopyala">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Copy.png"/>
                        </Button>
                        <Button Click="PasteClick"  ToolTip="Yapıştır">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Paste.png"/>
                        </Button>
                        <Button ToolTip="Sil" Click="DeleteClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Delete.png"/>
                        </Button>
                        <Button ToolTip="Seçileni Al" Click="TakeClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Accept.png"/>
                        </Button>
                    </ToolBar>
                </Grid>
            </TabItem>
            <TabItem Name="BackLeftTab" Header="Arka-Sol">
                <Grid Name="BackLeftGrid" ClipToBounds="True" Background="White"  MouseMove="BackLeftStackPanelMouseMove" MouseWheel="BackLeftStackPanelMouseWheel" MouseLeave="FrontLeftStackPanelMouseLeave" MouseLeftButtonDown="BackLeftStackPanelMouseLeftButtonDown" MouseLeftButtonUp="BackLeftGridMouseLeftButtonUp" >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="879*" />
                    </Grid.RowDefinitions>
                    <StackPanel Name="BackLeftStackPanel" Background="White" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left" >
                        <Canvas Name="BackLeftCanvas" VerticalAlignment="Top" HorizontalAlignment="Left" ></Canvas> 
                        <Canvas Name="BackLeftPoints" VerticalAlignment="Top" HorizontalAlignment="Left" ></Canvas>
                        <Canvas Name="BackLeftRectangleCanvas">
                            <Rectangle Name="BackLeftRectangle" Canvas.Left="50" Canvas.Top="50" Width="50" Height="50" Stroke="Green" Fill="LightBlue" Opacity="0.5" Visibility="Hidden" />
                        </Canvas>
                    </StackPanel>
                    <ToolBar Background="#FFCAE5D7" Grid.Row="0" >
                        <Button Click="BackLeftOpenClick">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Open.png"/>
                        </Button>
                        <Button ToolTip="Kes" Click="CutClick" >
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Cut.png"/>
                        </Button>
                        <Button Click="CopyClick"  ToolTip="Kopyala">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Copy.png"/>
                        </Button>
                        <Button Click="PasteClick"  ToolTip="Yapıştır">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Paste.png"/>
                        </Button>
                        <Button ToolTip="Sil" Click="DeleteClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Delete.png"/>
                        </Button>
                        <Button ToolTip="Seçileni Al" Click="TakeClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Accept.png"/>
                        </Button>
                    </ToolBar>
                </Grid>
            </TabItem>
            <TabItem Name="BackRightTab" Header="Arka-Sağ">
                <Grid Name="BackRightGrid" ClipToBounds="True" Background="White" MouseMove="BackRightStackPanelMouseMove" MouseWheel="BackRightStackPanelMouseWheel" MouseLeave="FrontLeftStackPanelMouseLeave" MouseLeftButtonDown="BackRightStackPanelMouseLeftButtonDown" MouseLeftButtonUp="BackRightGridMouseLeftButtonUp" >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="879*" />
                    </Grid.RowDefinitions>
                    <StackPanel Name="BackRightStackPanel" Background="White"  Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left">
                        <Canvas Name="BackRightCanvas" VerticalAlignment="Top" HorizontalAlignment="Left" ></Canvas>
                        <Canvas Name="BackRightPoints" VerticalAlignment="Top" HorizontalAlignment="Left" ></Canvas>
                        <Canvas Name="BackRightRectangleCanvas">
                            <Rectangle Name="BackRightRectangle" Canvas.Left="50" Canvas.Top="50" Width="50" Height="50" Stroke="Green" Fill="LightBlue" Opacity="0.5" Visibility="Hidden" />
                        </Canvas>
                    </StackPanel>
                    <ToolBar Background="#FFCAE5D7" Grid.Row="0" >
                        <Button Click="BackRightOpenClick">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Open.png"/>
                        </Button>
                        <Button ToolTip="Kes" Click="CutClick" >
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Cut.png"/>
                        </Button>
                        <Button Click="CopyClick"  ToolTip="Kopyala">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Copy.png"/>
                        </Button>
                        <Button Click="PasteClick"  ToolTip="Yapıştır">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Paste.png"/>
                        </Button>
                        <Button ToolTip="Sil" Click="DeleteClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Delete.png"/>
                        </Button>
                        <Button ToolTip="Seçileni Al" Click="TakeClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Accept.png"/>
                        </Button>
                    </ToolBar>
                </Grid>
            </TabItem>
            <TabItem Name="Detay0" Header="Detay1" Visibility="Collapsed" >
                <Grid Name="DetayGrid0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ClipToBounds="True" Background="White" MouseMove="DetayGrid0_MouseMove"  MouseLeave="FrontLeftStackPanelMouseLeave" MouseWheel="DetayGrid0_MouseWheel"  MouseLeftButtonDown="DetayGrid0_MouseLeftButtonDown"  MouseLeftButtonUp="DetayGrid0_MouseLeftButtonUp">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="879*" />
                    </Grid.RowDefinitions>
                    <StackPanel Name="DetayStackPanel0" Background="White" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left"  >
                        <Canvas Name="DetayCanvas0" Background="White" VerticalAlignment="Top" HorizontalAlignment="Left" ></Canvas>
                        <Canvas Name="DetayRectangleCanvas0">
                            <Rectangle Name="DetayRectangle0" Canvas.Left="50" Canvas.Top="50" Width="50" Height="50" Stroke="Green" Fill="LightBlue" Opacity="0.5" Visibility="Hidden" />
                        </Canvas>
                    </StackPanel>
                    <ToolBar Background="#FFCAE5D7" Grid.Row="0" >
                        <Button Click="Detay0OpenClick">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Open.png"/>
                        </Button>
                        <Button ToolTip="Kes" Click="CutClick" >
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Cut.png"/>
                        </Button>
                        <Button Click="CopyClick"  ToolTip="Kopyala">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Copy.png"/>
                        </Button>
                        <Button Click="PasteClick"  ToolTip="Yapıştır">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Paste.png"/>
                        </Button>
                        <Button ToolTip="Sil" Click="DeleteClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Delete.png"/>
                        </Button>
                        <Button ToolTip="Seçileni Al" Click="TakeClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Accept.png"/>
                        </Button>
                        <CheckBox Name="Detay0TableCheckBox" Content="Tablo Var" Checked="Detay0TableChecked" Unchecked="Detay0TableUnchecked"/>
                    </ToolBar>
                    <Canvas Name="Detay0TableCanvas" Width="450" Height="250" HorizontalAlignment="Right" Margin="0,25,0,0" Visibility="Collapsed" >
                        <ToolBar Background="#FFCAE5D7" Height="22" Width="450" HorizontalAlignment="Stretch" VerticalAlignment="Top">
                            <TextBlock Text="Değişken Sayısı: "/>
                            <Button Background="LightGray" Content=" ˅ " Click="Detay0DecreaseClick"/>
                            <TextBlock Name="Detay0Number" Background="White" Width="20" TextAlignment="Center" Text="1"/>
                            <Button Background="LightGray" Content=" ˄ " Click="Detay0IncreaseClick"/>
                        </ToolBar>
                        <Canvas Background="White" Name="Detay0TableC" Margin="0,22,0,0" Width="450" Height="228"/>
                        <Path StrokeThickness="2" Stroke="LightGray">
                            <Path.Data>
                                <RectangleGeometry RadiusX="4" RadiusY="4" Rect="2,0,450,250"/>
                            </Path.Data>
                        </Path>
                    </Canvas>
                </Grid>
            </TabItem>
            <TabItem Name="Detay1" Header="Detay2" Visibility="Collapsed">
                <Grid Name="DetayGrid1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ClipToBounds="True" Background="White" MouseMove="DetayGrid1_MouseMove"  MouseLeave="FrontLeftStackPanelMouseLeave" MouseWheel="DetayGrid1_MouseWheel"  MouseLeftButtonDown="DetayGrid1_MouseLeftButtonDown"  MouseLeftButtonUp="DetayGrid1_MouseLeftButtonUp">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="879*" />
                    </Grid.RowDefinitions>
                    <StackPanel Name="DetayStackPanel1" Background="White" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left"  >
                        <Canvas Name="DetayCanvas1" Background="White" VerticalAlignment="Top" HorizontalAlignment="Left" ></Canvas>
                        <Canvas Name="DetayRectangleCanvas1">
                            <Rectangle Name="DetayRectangle1" Canvas.Left="50" Canvas.Top="50" Width="50" Height="50" Stroke="Green" Fill="LightBlue" Opacity="0.5" Visibility="Hidden" />
                        </Canvas>
                    </StackPanel>
                    <ToolBar Background="#FFCAE5D7" Grid.Row="0" >
                        <Button Click="Detay1OpenClick">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Open.png"/>
                        </Button>
                        <Button ToolTip="Kes" Click="CutClick" >
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Cut.png"/>
                        </Button>
                        <Button Click="CopyClick"  ToolTip="Kopyala">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Copy.png"/>
                        </Button>
                        <Button Click="PasteClick"  ToolTip="Yapıştır">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Paste.png"/>
                        </Button>
                        <Button ToolTip="Sil" Click="DeleteClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Delete.png"/>
                        </Button>
                        <Button ToolTip="Seçileni Al" Click="TakeClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Accept.png"/>
                        </Button>
                        <CheckBox Name="Detay1TableCheckBox" Content="Tablo Var" Checked="Detay1TableChecked"  Unchecked="Detay1TableUnchecked"/>
                    </ToolBar>
                    <Canvas Name="Detay1TableCanvas" Width="450" Height="250" HorizontalAlignment="Right" Margin="0,25,0,0" Visibility="Collapsed" >
                        <ToolBar Background="#FFCAE5D7" Height="22" Width="450" HorizontalAlignment="Stretch" VerticalAlignment="Top">
                            <TextBlock Text="Değişken Sayısı: "/>
                            <Button Background="LightGray" Content=" ˅ " Click="Detay1DecreaseClick"/>
                            <TextBlock Name="Detay1Number" Background="White" Width="20" TextAlignment="Center" Text="1"/>
                            <Button Background="LightGray" Content=" ˄ " Click="Detay1IncreaseClick"/>
                        </ToolBar>
                        <Canvas Background="White" Name="Detay1TableC" Margin="0,22,0,0" Width="450" Height="228"/>
                        <Path StrokeThickness="2" Stroke="LightGray">
                            <Path.Data>
                                <RectangleGeometry RadiusX="4" RadiusY="4" Rect="2,0,450,250"/>
                            </Path.Data>
                        </Path>
                    </Canvas>
                </Grid>
            </TabItem>
            <TabItem Name="Detay2" Header="Detay3" Visibility="Collapsed" >
                <Grid Name="DetayGrid2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ClipToBounds="True" Background="White" MouseMove="DetayGrid2_MouseMove"  MouseLeave="FrontLeftStackPanelMouseLeave" MouseWheel="DetayGrid2_MouseWheel"  MouseLeftButtonDown="DetayGrid2_MouseLeftButtonDown"  MouseLeftButtonUp="DetayGrid2_MouseLeftButtonUp">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="879*" />
                    </Grid.RowDefinitions>
                    <StackPanel Name="DetayStackPanel2" Background="White" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left"  >
                        <Canvas Name="DetayCanvas2" Background="White" VerticalAlignment="Top" HorizontalAlignment="Left" ></Canvas>
                        <Canvas Name="DetayRectangleCanvas2">
                            <Rectangle Name="DetayRectangle2" Canvas.Left="50" Canvas.Top="50" Width="50" Height="50" Stroke="Green" Fill="LightBlue" Opacity="0.5" Visibility="Hidden" />
                        </Canvas>
                    </StackPanel>
                    <ToolBar Background="#FFCAE5D7" Grid.Row="0" >
                        <Button Click="Detay2OpenClick">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Open.png"/>
                        </Button>
                        <Button ToolTip="Kes" Click="CutClick" >
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Cut.png"/>
                        </Button>
                        <Button Click="CopyClick"  ToolTip="Kopyala">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Copy.png"/>
                        </Button>
                        <Button Click="PasteClick"  ToolTip="Yapıştır">
                            <Image Width="15" Height="15"   Stretch="UniformToFill" Source="/DynaCAD;component/Images/Paste.png"/>
                        </Button>
                        <Button ToolTip="Sil" Click="DeleteClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Delete.png"/>
                        </Button>
                        <Button ToolTip="Seçileni Al" Click="TakeClick">
                            <Image Width="15" Height="15" Stretch="UniformToFill" Source="/DynaCAD;component/Images/Accept.png"/>
                        </Button>
                        <CheckBox Name="Detay2TableCheckBox" Content="Tablo Var" Checked="Detay2TableChecked"  Unchecked="Detay2TableUnchecked"/>
                    </ToolBar>
                    <Canvas Name="Detay2TableCanvas" Width="450" Height="250" HorizontalAlignment="Right" Margin="0,25,0,0" Visibility="Collapsed" >
                        <ToolBar Background="#FFCAE5D7" Height="22" Width="450" HorizontalAlignment="Stretch" VerticalAlignment="Top">
                            <TextBlock Text="Değişken Sayısı: "/>
                            <Button Background="LightGray" Content=" ˅ " Click="Detay2DecreaseClick"/>
                            <TextBlock Name="Detay2Number" Background="White" Width="20" TextAlignment="Center" Text="1"/>
                            <Button Background="LightGray" Content=" ˄ " Click="Detay2IncreaseClick"/>
                        </ToolBar>
                        <Canvas Background="White" Name="Detay2TableC" Margin="0,22,0,0" Width="450" Height="228"/>
                        <Path StrokeThickness="2" Stroke="LightGray">
                            <Path.Data>
                                <RectangleGeometry RadiusX="4" RadiusY="4" Rect="2,0,450,250"/>
                            </Path.Data>
                        </Path>
                    </Canvas>
                </Grid>
            </TabItem>
        </TabControl>




        <StackPanel VerticalAlignment="Top" Orientation="Horizontal" Height="50" Background="#2F869C" Grid.ColumnSpan="3">

            <TextBlock Text="Dynamic CAD" VerticalAlignment="Center" Margin="15,0,5,0" FontSize="30" FontFamily="Calibri" Foreground="#CEF0D4" FontWeight="Bold"/>
            <TextBlock Text="v0.5" VerticalAlignment="Center" Margin="5,0,35,0" FontSize="20" FontFamily="Calibri" Foreground="Yellow" FontStyle="Italic" />
            <TextBlock VerticalAlignment="Center" Margin="10,0,0,0" Name="tbName" Text="{Binding Path=Name}" Foreground="White" />

        </StackPanel>
        
        <ToolBar Grid.Row="1"  VerticalAlignment="Top" HorizontalAlignment="Stretch" Height="25" Background="#FFCAE5D7" Grid.ColumnSpan="2">
            <Menu IsMainMenu="True" VerticalAlignment="Top" VerticalContentAlignment="Top">
                <MenuItem VerticalAlignment="Top" Name="Dosya" Header="İşlemler">                    
                    <MenuItem Header="Parça Aç" Click="PartLoadClick" />
                    <MenuItem Header="Parça Kaydet" Click="PartSaveClick" />
                </MenuItem>
                <MenuItem VerticalAlignment="Top" Header="Ekle">
                    <MenuItem Header="Not Ekle" Click="AddNoteClick"/>
                    <MenuItem Header="Şekil Ekle">
                        <MenuItem Header="Ok" Click="AddArrowClick"/>
                        <MenuItem Header="Çift Ok" Click="AddDoubleArrowClick" />
                        <MenuItem Header="Eğri" Click="AddSplineClick" />
                        <MenuItem Header="Dikiş" Click="AddSeamClick" />  
                    </MenuItem>
                </MenuItem>
            </Menu>
        </ToolBar>
        <Border Grid.Row="2" Grid.ColumnSpan="2" BorderThickness="2" CornerRadius="5" BorderBrush="#FFBAD5C7" >
            <DockPanel Grid.Row="2" Grid.ColumnSpan="2">               
                <TextBlock Text="Parça Türü" VerticalAlignment="Center" HorizontalAlignment="Left" TextAlignment="Left" Margin="10,0"/>
                <ComboBox Name="PartTypeComboBox" HorizontalAlignment="Left" Height="20" Width="200"></ComboBox>
                <TextBlock Text="Parça İsmi" HorizontalAlignment="Left" VerticalAlignment="Center" TextAlignment="Left" Margin="20,0" />
                <TextBox Name="PartName" Width="200" HorizontalAlignment="Left" Margin="0,0" VerticalAlignment="Center" Height="18" />
            </DockPanel>
        </Border>
        <Border Grid.Row="3" Height="30" BorderThickness="3" BorderBrush="#FFAAC5B7" CornerRadius="6"  Margin="0,0,0,0">
            <DockPanel Background="#FFCAE5D7"  VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
                <TextBlock Text="Şablon:" Margin="10,0" VerticalAlignment="Center" HorizontalAlignment="Left" />
                <ComboBox Name="TemplateComboBox" Height="20" VerticalAlignment="Center" Margin="10,0,10,0" />
            </DockPanel>
        </Border>
        <Grid ClipToBounds="True" Grid.Row="4" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Name="TemplateGrid" MouseMove="TemplateStackPanelMouseMove" MouseWheel="TemplateStackPanelMouseWheel" MouseLeave="TemplateStackPanelMouseLeave" >
            <StackPanel Name="TemplateStackPanel" HorizontalAlignment="Left" VerticalAlignment="Top"  >
                <Canvas Name="TemplateModelCanvas"/>
                <Canvas Name="TemplatePointCanvas"/>
            </StackPanel>
        </Grid>
        <GridSplitter Grid.Row="3" Width="2" Background="#FFAAC5B7" Grid.RowSpan="2" />
    </Grid>
</Window>
